
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>闭包 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="作用域.html" />
    
    
    <link rel="prev" href="数据类型及判断.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Js基础部分</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="数据类型及判断.html">
            
                <a href="数据类型及判断.html">
            
                    
                    数据类型及判断
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="2.2" data-path="闭包.html">
            
                <a href="闭包.html">
            
                    
                    闭包
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="作用域.html">
            
                <a href="作用域.html">
            
                    
                    作用域
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="函数提升、变量提升.html">
            
                <a href="函数提升、变量提升.html">
            
                    
                    函数提升、变量提升
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="原型链.html">
            
                <a href="原型链.html">
            
                    
                    原型链
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="js继承.html">
            
                <a href="js继承.html">
            
                    
                    js继承
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="深拷贝、浅拷贝.html">
            
                <a href="深拷贝、浅拷贝.html">
            
                    
                    深拷贝、浅拷贝
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="let、const、var区别.md">
            
                <span>
            
                    
                    let、const、var区别
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="async、await.md">
            
                <span>
            
                    
                    async、await
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="模块化.md">
            
                <span>
            
                    
                    模块化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="this指向问题.md">
            
                <span>
            
                    
                    this指向问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.12" data-path="算法.md">
            
                <span>
            
                    
                    算法
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Js高级部分</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../js高级/垃圾回收机制、内存泄漏.md">
            
                <span>
            
                    
                    垃圾回收机制、内存泄漏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../js高级/事件机制、js事件绑定.md">
            
                <span>
            
                    
                    事件机制、js事件绑定
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="../js高级/事件循环.md">
            
                <span>
            
                    
                    事件循环
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="../js高级/Promise.md">
            
                <span>
            
                    
                    Promise
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="../js高级/class.md">
            
                <span>
            
                    
                    class
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.6" data-path="../js高级/同步、异步.html">
            
                <a href="../js高级/同步、异步.html">
            
                    
                    同步、异步
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">计算机基础</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../计算机基础/进程、线程、cpu、内存.md">
            
                <span>
            
                    
                    进程、线程、cpu、内存
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">游览器</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../游览器/游览器渲染机制、输入url,游览器执行过程.md">
            
                <span>
            
                    
                    游览器渲染机制、输入url,游览器执行过程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="../游览器/游览器缓存机制.md">
            
                <span>
            
                    
                    游览器缓存机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="../游览器/同源策略、跨域解决问题.md">
            
                <span>
            
                    
                    同源策略、跨域解决问题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="../游览器/ajax原理，es6写法.md">
            
                <span>
            
                    
                    ajax原理，es6写法
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">框架</li>
        
        
    
        <li class="chapter " data-level="6.1" data-path="../框架/生命周期、钩子函数.md">
            
                <span>
            
                    
                    生命周期、钩子函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2" data-path="../框架/虚拟DOM、diff算法.md">
            
                <span>
            
                    
                    虚拟DOM、diff算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.3" data-path="../框架/组件通信.md">
            
                <span>
            
                    
                    组件通信
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.4" data-path="../框架/状态管理.md">
            
                <span>
            
                    
                    状态管理
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">webpack</li>
        
        
    
        <li class="chapter " data-level="7.1" data-path="../webpack/webpack原理、常用loader.md">
            
                <span>
            
                    
                    webpack原理、常用loader
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">http</li>
        
        
    
        <li class="chapter " data-level="8.1" data-path="../http/报文结构、区别.md">
            
                <span>
            
                    
                    报文结构、区别
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="8.2" data-path="../http/网络攻击.md">
            
                <span>
            
                    
                    网络攻击
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">常见问题</li>
        
        
    
        <li class="chapter " data-level="9.1" data-path="../数组去重.md">
            
                <span>
            
                    
                    数组去重
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.2" data-path="../防抖节流.md">
            
                <span>
            
                    
                    防抖节流
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.3" data-path="../手写promise.md">
            
                <span>
            
                    
                    手写promise
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.4" data-path="../类型判读、深浅拷贝.md">
            
                <span>
            
                    
                    类型判读、深浅拷贝
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.5" >
            
                <a target="_blank" href="https://juejin.cn/post/7030981812880932878">
            
                    
                    https://juejin.cn/post/7030981812880932878
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.6" >
            
                <a target="_blank" href="https://juejin.cn/post/6945625394154307592#heading-2">
            
                    
                    https://juejin.cn/post/6945625394154307592#heading-2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.7" >
            
                <a target="_blank" href="https://juejin.cn/user/3984285872165176/posts">
            
                    
                    https://juejin.cn/user/3984285872165176/posts
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="9.8" data-path="../常用方法封装.html">
            
                <a href="../常用方法封装.html">
            
                    
                    常用方法封装
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">前端资料</li>
        
        
    
        <li class="chapter " data-level="10.1" >
            
                <a target="_blank" href="https://underscorejs.org/">
            
                    
                    https://underscorejs.org/
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >闭包</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x95ED;&#x5305;">&#x95ED;&#x5305;</h1>
<ul>
<li>&#x6267;&#x884C;&#x4E0A;&#x4E0B;&#x6587;&#x3001;&#x5806;&#x6808;&#x5185;&#x5B58;&#x7684;&#x91CA;&#x653E;</li>
<li>&#x4EC0;&#x4E48;&#x662F;&#x95ED;&#x5305;</li>
<li>&#x95ED;&#x5305;&#x7684;&#x95EE;&#x9898;</li>
<li>&#x5185;&#x5B58;&#x6CC4;&#x6F0F;</li>
<li>&#x5185;&#x5B58;&#x6CC4;&#x6F0F;&#x89E3;&#x51B3;&#x529E;&#x6CD5;</li>
</ul>
<h3 id="&#x6267;&#x884C;&#x4E0A;&#x4E0B;&#x6587;&#x3001;&#x5806;&#x6808;&#x5185;&#x5B58;&#x7684;&#x91CA;&#x653E;">&#x6267;&#x884C;&#x4E0A;&#x4E0B;&#x6587;&#x3001;&#x5806;&#x6808;&#x5185;&#x5B58;&#x7684;&#x91CA;&#x653E;</h3>
<ul>
<li>&#x6267;&#x884C;&#x4E0A;&#x4E0B;&#x6587;<ul>
<li><strong>&#x5168;&#x5C40;&#x6267;&#x884C;&#x4E0A;&#x4E0B;&#x6587;</strong>:  &#x4EFB;&#x4F55;&#x4E0D;&#x5728;&#x51FD;&#x6570;&#x4E2D;&#x7684;&#x4EE3;&#x7801;&#x90FD;&#x5728;&#x5168;&#x5C40;&#x4E0A;&#x4E0B;&#x6587;&#x4E2D;&#xFF0C;&#x5B83;&#x4F1A;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x5168;&#x5C40;&#x5BF9;&#x8C61;&#xFF0C;&#x6E38;&#x89C8;&#x5668;&#x73AF;&#x5883;&#x4E0B;&#x4E3A;window&#x3002;&#x8BA9;&#x5F53;&#x524D;&#x4E0A;&#x4E0B;&#x6587;&#x7684;this&#x503C;&#x7B49;&#x4E8E;&#x8FD9;&#x4E2A;&#x5168;&#x5C40;&#x5BF9;&#x8C61;&#x3002;&#x5168;&#x5C40;&#x6267;&#x884C;&#x4E0A;&#x4E0B;&#x6587;&#x53EA;&#x6709;&#x4E00;&#x4E2A;&#x3002;</li>
<li><strong>&#x51FD;&#x6570;&#x6267;&#x884C;&#x4E0A;&#x4E0B;&#x6587;</strong>&#xFF1A;&#x6BCF;&#x5F53;&#x51FD;&#x6570;&#x6267;&#x884C;&#x5C31;&#x4F1A;&#x751F;&#x6210;&#x4E00;&#x4E2A;&#x51FD;&#x6570;&#x6267;&#x884C;&#x4E0A;&#x4E0B;&#x6587;&#x3002;</li>
<li><strong>eval&#x51FD;&#x6570;&#x6267;&#x884C;&#x4E0A;&#x4E0B;&#x6587;</strong>&#xFF1A;&#x6267;&#x884C;&#x5728;eval&#x51FD;&#x6570;&#x5185;&#x90E8;&#x7684;&#x4EE3;&#x7801;&#x4E5F;&#x4F1A;&#x521B;&#x5EFA;&#x81EA;&#x5DF1;&#x7684;&#x6267;&#x884C;&#x4E0A;&#x4E0B;&#x6587;&#x3002;</li>
</ul>
</li>
<li>&#x5806;&#x6808;&#x5185;&#x5B58;&#x7684;&#x91CA;&#x653E;<ul>
<li><strong>&#x5806;&#x5185;&#x5B58;</strong>&#xFF1A;&#x5B58;&#x50A8;&#x5F15;&#x7528;&#x7C7B;&#x578B;&#x503C;&#xFF0C;&#x5BF9;&#x8C61;&#x4E3A;&#x952E;&#x503C;&#x5BF9;&#x3001;&#x51FD;&#x6570;&#x4E3A;&#x5B57;&#x7B26;&#x4E32;&#x3002;</li>
<li><strong>&#x6808;&#x5185;&#x5B58;</strong>&#xFF1A;&#x63D0;&#x4F9B;&#x4EE3;&#x7801;&#x6267;&#x884C;&#x73AF;&#x5883;&#x5E76;&#x5B58;&#x50A8;&#x57FA;&#x672C;&#x7C7B;&#x578B;&#x503C;&#x53CA;&#x53D8;&#x91CF;&#x3002;</li>
<li><strong>&#x5806;&#x5185;&#x5B58;&#x7684;&#x91CA;&#x653E;</strong>&#xFF1A;&#x5C06;&#x5F15;&#x7528;&#x7C7B;&#x578B;&#x7684;&#x7A7A;&#x95F4;&#x5730;&#x5740;&#x8D4B;&#x503C;&#x4E3A;null&#xFF0C;&#x6E38;&#x89C8;&#x5668;&#x4F1A;&#x5728;&#x7A7A;&#x95F2;&#x65F6;&#x91CA;&#x653E;&#x8BE5;&#x5806;&#x5185;&#x5B58;&#x3002;</li>
<li><strong>&#x6808;&#x5185;&#x5B58;&#x7684;&#x91CA;&#x653E;</strong>&#xFF1A;&#x51FD;&#x6570;&#x6267;&#x884C;&#x5F62;&#x6210;&#x7684;&#x79C1;&#x6709;&#x6808;&#x5185;&#x5B58;&#x5728;&#x8C03;&#x7528;&#x7ED3;&#x675F;&#x540E;&#x5C31;&#x4F1A;&#x88AB;&#x9500;&#x6BC1;&#xFF0C;&#x5168;&#x5C40;&#x6808;&#x5185;&#x5B58;&#x53EA;&#x6709;&#x6E38;&#x89C8;&#x5668;&#x5173;&#x95ED;&#x65F6;&#x624D;&#x9500;&#x6BC1;&#x3002;<code>&#x5728;&#x51FD;&#x6570;&#x79C1;&#x6709;&#x6808;&#x5185;&#x5B58;&#x91CA;&#x653E;&#x65F6;&#xFF0C;&#x5982;&#x679C;&#x51FD;&#x6570;&#x7684;&#x79C1;&#x6709;&#x4F5C;&#x7528;&#x57DF;&#x88AB;&#x6808;&#x5916;&#x7684;&#x53D8;&#x91CF;&#x5360;&#x7528;&#xFF0C;&#x51FD;&#x6570;&#x79C1;&#x6709;&#x6808;&#x4E0D;&#x80FD;&#x88AB;&#x9500;&#x6BC1;&#xFF0C;&#x6808;&#x5185;&#x5B58;&#x50A8;&#x7684;&#x503C;&#x4E5F;&#x4E0D;&#x80FD;&#x88AB;&#x9500;&#x6BC1;&#x3002;</code></li>
</ul>
</li>
</ul>
<h3 id="&#x4EC0;&#x4E48;&#x662F;&#x95ED;&#x5305;">&#x4EC0;&#x4E48;&#x662F;&#x95ED;&#x5305;</h3>
<p>&#x5F62;&#x6210;&#x4E00;&#x4E2A;&#x4E0D;&#x53EF;&#x88AB;&#x9500;&#x6BC1;&#x7684;&#x79C1;&#x6709;&#x6808;&#x7A7A;&#x95F4;&#x3002;&#x80FD;&#x591F;&#x8BBF;&#x95EE;&#x5176;&#x4ED6;&#x79C1;&#x6709;&#x53D8;&#x91CF;&#x7684;&#x51FD;&#x6570;&#x4E5F;&#x53EB;&#x95ED;&#x5305;&#x3002;</p>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">fn</span>(<span class="hljs-params"></span>)</span>{
  <span class="hljs-keyword">let</span> a = <span class="hljs-number">1</span>;
  <span class="hljs-keyword">return</span> <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>)</span>{
    <span class="hljs-built_in">console</span>.log(a)
  }
}

fn()();
</code></pre>
<h3 id="&#x95ED;&#x5305;&#x7684;&#x95EE;&#x9898;">&#x95ED;&#x5305;&#x7684;&#x95EE;&#x9898;</h3>
<pre><code class="lang-javascript"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">fn</span>(<span class="hljs-params"></span>)</span>{
  <span class="hljs-keyword">let</span> a = <span class="hljs-number">1</span>;
  <span class="hljs-keyword">return</span> <span class="hljs-function"><span class="hljs-keyword">function</span>(<span class="hljs-params"></span>)</span>{
    <span class="hljs-built_in">console</span>.log(a)
  }
}

<span class="hljs-keyword">let</span> newFn = fn();
</code></pre>
<p>js&#x7684;&#x5783;&#x573E;&#x56DE;&#x6536;&#x673A;&#x5236;&#x4E3A;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x6A21;&#x5F0F;&#xFF0C;&#x5F53;&#x5185;&#x5B58;&#x4E2D;&#x7684;&#x53D8;&#x91CF;&#x4F7F;&#x7528;&#x4E00;&#x6B21;&#xFF0C;&#x6280;&#x672F;&#x52A0;&#x4E00;&#xFF0C;js&#x56DE;&#x6536;&#x673A;&#x5236;&#x4F1A;&#x5728;&#x6307;&#x5B9A;&#x65F6;&#x95F4;&#x8F6E;&#x8BE2;&#xFF0C;&#x6807;&#x8BB0;&#x5F15;&#x7528;&#x4E3A;0&#x7684;&#x53D8;&#x91CF;&#x5C06;&#x5B83;&#x6E05;&#x695A;&#x5E76;&#x91CA;&#x653E;&#x5185;&#x5B58;&#x3002;</p>
<p>&#x5728;&#x4E0A;&#x8FF0;&#x4EE3;&#x7801;&#x4E2D;&#xFF0C;&#x59CB;&#x7EC8;&#x6709;&#x4E00;&#x4E2A;newFn&#x53D8;&#x91CF;&#x5360;&#x7528;&#x7740;fn&#x51FD;&#x6570;&#x5185;&#x90E8;&#x7684;function&#x51FD;&#x6570;&#xFF0C;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x59CB;&#x7EC8;&#x4E3A;1&#xFF0C;&#x5E76;&#x4E14;&#x51FD;&#x6570;&#x4E2D;&#x53EF;&#x80FD;&#x8FD8;&#x4F7F;&#x7528;&#x5230;fn&#x4E2D;&#x7684;&#x5176;&#x4ED6;&#x53D8;&#x91CF;&#xFF0C;&#x6240;&#x4EE5;&#x5BFC;&#x81F4;fn&#x51FD;&#x6570;&#x53CA;&#x51FD;&#x6570;&#x4F5C;&#x7528;&#x57DF;&#x7684;&#x53D8;&#x91CF;&#x4E0D;&#x80FD;&#x88AB;&#x6E05;&#x9664;&#x3002;&#x5BFC;&#x81F4;&#x5185;&#x5B58;&#x88AB;&#x5360;&#x7528;&#x65E0;&#x6CD5;&#x91CA;&#x653E;&#xFF0C;&#x6211;&#x4EEC;&#x79F0;&#x4E4B;&#x4E3A;&#x5185;&#x5B58;&#x6CC4;&#x6F0F;&#x3002;</p>
<h3 id="&#x5185;&#x5B58;&#x6CC4;&#x6F0F;">&#x5185;&#x5B58;&#x6CC4;&#x6F0F;</h3>
<p>&#x5185;&#x5B58;&#x65E0;&#x6CD5;&#x6B63;&#x5E38;&#x91CA;&#x653E;&#x56DE;&#x5F52;&#x5185;&#x5B58;&#x6C60;&#x3002;</p>
<p>&#x5E38;&#x89C1;&#x5185;&#x5B58;&#x6CC4;&#x6F0F;&#xFF1A;</p>
<ul>
<li>&#x95ED;&#x5305;&#x5BFC;&#x81F4;&#x5185;&#x5B58;&#x6CC4;&#x6F0F;</li>
<li>&#x58F0;&#x660E;&#x4E0D;&#x89C4;&#x8303;&#x521B;&#x5EFA;&#x4E86;&#x5168;&#x5C40;&#x53D8;&#x91CF;</li>
<li>&#x5143;&#x7D20;&#x7ED1;&#x5B9A;&#x4E8B;&#x4EF6;&#x540E;&#x6CA1;&#x6709;&#x6E05;&#x9664;</li>
</ul>
<h3 id="&#x5185;&#x5B58;&#x6CC4;&#x6F0F;&#x89E3;&#x51B3;&#x529E;&#x6CD5;">&#x5185;&#x5B58;&#x6CC4;&#x6F0F;&#x89E3;&#x51B3;&#x529E;&#x6CD5;</h3>
<ul>
<li>&#x907F;&#x514D;&#x8FC7;&#x591A;&#x4F7F;&#x7528;&#x95ED;&#x5305;</li>
<li>&#x4F7F;&#x7528;&#x4E25;&#x683C;&#x6A21;&#x5F0F;</li>
<li>&#x7ED1;&#x5B9A;&#x7684;&#x5143;&#x7D20;&#xFF0C;&#x9500;&#x6BC1;&#x9636;&#x6BB5;&#x89E3;&#x9664;&#x7ED1;&#x5B9A;</li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="数据类型及判断.html" class="navigation navigation-prev " aria-label="Previous page: 数据类型及判断">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="作用域.html" class="navigation navigation-next " aria-label="Next page: 作用域">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"闭包","level":"2.2","depth":1,"next":{"title":"作用域","level":"2.3","depth":1,"path":"js基础/作用域.md","ref":"js基础/作用域.md","articles":[]},"previous":{"title":"数据类型及判断","level":"2.1","depth":1,"path":"js基础/数据类型及判断.md","ref":"js基础/数据类型及判断.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"js基础/闭包.md","mtime":"2022-03-09T07:36:53.604Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2022-03-09T09:38:49.410Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

